Optimal. Leaf size=83 \[ \frac{(d+e x)^2 \left (a+b \csc ^{-1}(c x)\right )}{2 e}+\frac{b d \tanh ^{-1}\left (\sqrt{1-\frac{1}{c^2 x^2}}\right )}{c}+\frac{b e x \sqrt{1-\frac{1}{c^2 x^2}}}{2 c}-\frac{b d^2 \csc ^{-1}(c x)}{2 e} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.166665, antiderivative size = 83, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 9, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.643, Rules used = {5227, 1568, 1396, 1807, 844, 216, 266, 63, 208} \[ \frac{(d+e x)^2 \left (a+b \csc ^{-1}(c x)\right )}{2 e}+\frac{b d \tanh ^{-1}\left (\sqrt{1-\frac{1}{c^2 x^2}}\right )}{c}+\frac{b e x \sqrt{1-\frac{1}{c^2 x^2}}}{2 c}-\frac{b d^2 \csc ^{-1}(c x)}{2 e} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5227
Rule 1568
Rule 1396
Rule 1807
Rule 844
Rule 216
Rule 266
Rule 63
Rule 208
Rubi steps
\begin{align*} \int (d+e x) \left (a+b \csc ^{-1}(c x)\right ) \, dx &=\frac{(d+e x)^2 \left (a+b \csc ^{-1}(c x)\right )}{2 e}+\frac{b \int \frac{(d+e x)^2}{\sqrt{1-\frac{1}{c^2 x^2}} x^2} \, dx}{2 c e}\\ &=\frac{(d+e x)^2 \left (a+b \csc ^{-1}(c x)\right )}{2 e}+\frac{b \int \frac{\left (e+\frac{d}{x}\right )^2}{\sqrt{1-\frac{1}{c^2 x^2}}} \, dx}{2 c e}\\ &=\frac{(d+e x)^2 \left (a+b \csc ^{-1}(c x)\right )}{2 e}-\frac{b \operatorname{Subst}\left (\int \frac{(e+d x)^2}{x^2 \sqrt{1-\frac{x^2}{c^2}}} \, dx,x,\frac{1}{x}\right )}{2 c e}\\ &=\frac{b e \sqrt{1-\frac{1}{c^2 x^2}} x}{2 c}+\frac{(d+e x)^2 \left (a+b \csc ^{-1}(c x)\right )}{2 e}+\frac{b \operatorname{Subst}\left (\int \frac{-2 d e-d^2 x}{x \sqrt{1-\frac{x^2}{c^2}}} \, dx,x,\frac{1}{x}\right )}{2 c e}\\ &=\frac{b e \sqrt{1-\frac{1}{c^2 x^2}} x}{2 c}+\frac{(d+e x)^2 \left (a+b \csc ^{-1}(c x)\right )}{2 e}-\frac{(b d) \operatorname{Subst}\left (\int \frac{1}{x \sqrt{1-\frac{x^2}{c^2}}} \, dx,x,\frac{1}{x}\right )}{c}-\frac{\left (b d^2\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{1-\frac{x^2}{c^2}}} \, dx,x,\frac{1}{x}\right )}{2 c e}\\ &=\frac{b e \sqrt{1-\frac{1}{c^2 x^2}} x}{2 c}-\frac{b d^2 \csc ^{-1}(c x)}{2 e}+\frac{(d+e x)^2 \left (a+b \csc ^{-1}(c x)\right )}{2 e}-\frac{(b d) \operatorname{Subst}\left (\int \frac{1}{x \sqrt{1-\frac{x}{c^2}}} \, dx,x,\frac{1}{x^2}\right )}{2 c}\\ &=\frac{b e \sqrt{1-\frac{1}{c^2 x^2}} x}{2 c}-\frac{b d^2 \csc ^{-1}(c x)}{2 e}+\frac{(d+e x)^2 \left (a+b \csc ^{-1}(c x)\right )}{2 e}+(b c d) \operatorname{Subst}\left (\int \frac{1}{c^2-c^2 x^2} \, dx,x,\sqrt{1-\frac{1}{c^2 x^2}}\right )\\ &=\frac{b e \sqrt{1-\frac{1}{c^2 x^2}} x}{2 c}-\frac{b d^2 \csc ^{-1}(c x)}{2 e}+\frac{(d+e x)^2 \left (a+b \csc ^{-1}(c x)\right )}{2 e}+\frac{b d \tanh ^{-1}\left (\sqrt{1-\frac{1}{c^2 x^2}}\right )}{c}\\ \end{align*}
Mathematica [A] time = 0.195894, size = 113, normalized size = 1.36 \[ a d x+\frac{1}{2} a e x^2+\frac{b d x \sqrt{1-\frac{1}{c^2 x^2}} \tanh ^{-1}\left (\frac{c x}{\sqrt{c^2 x^2-1}}\right )}{\sqrt{c^2 x^2-1}}+\frac{b e x \sqrt{\frac{c^2 x^2-1}{c^2 x^2}}}{2 c}+b d x \csc ^{-1}(c x)+\frac{1}{2} b e x^2 \csc ^{-1}(c x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.18, size = 140, normalized size = 1.7 \begin{align*}{\frac{a{x}^{2}e}{2}}+adx+{\frac{b{\rm arccsc} \left (cx\right ){x}^{2}e}{2}}+b{\rm arccsc} \left (cx\right )xd+{\frac{bd}{{c}^{2}x}\sqrt{{c}^{2}{x}^{2}-1}\ln \left ( cx+\sqrt{{c}^{2}{x}^{2}-1} \right ){\frac{1}{\sqrt{{\frac{{c}^{2}{x}^{2}-1}{{c}^{2}{x}^{2}}}}}}}+{\frac{bex}{2\,c}{\frac{1}{\sqrt{{\frac{{c}^{2}{x}^{2}-1}{{c}^{2}{x}^{2}}}}}}}-{\frac{be}{2\,{c}^{3}x}{\frac{1}{\sqrt{{\frac{{c}^{2}{x}^{2}-1}{{c}^{2}{x}^{2}}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.00062, size = 124, normalized size = 1.49 \begin{align*} \frac{1}{2} \, a e x^{2} + \frac{1}{2} \,{\left (x^{2} \operatorname{arccsc}\left (c x\right ) + \frac{x \sqrt{-\frac{1}{c^{2} x^{2}} + 1}}{c}\right )} b e + a d x + \frac{{\left (2 \, c x \operatorname{arccsc}\left (c x\right ) + \log \left (\sqrt{-\frac{1}{c^{2} x^{2}} + 1} + 1\right ) - \log \left (-\sqrt{-\frac{1}{c^{2} x^{2}} + 1} + 1\right )\right )} b d}{2 \, c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.19668, size = 302, normalized size = 3.64 \begin{align*} \frac{a c^{2} e x^{2} + 2 \, a c^{2} d x - 2 \, b c d \log \left (-c x + \sqrt{c^{2} x^{2} - 1}\right ) + \sqrt{c^{2} x^{2} - 1} b e +{\left (b c^{2} e x^{2} + 2 \, b c^{2} d x - 2 \, b c^{2} d - b c^{2} e\right )} \operatorname{arccsc}\left (c x\right ) - 2 \,{\left (2 \, b c^{2} d + b c^{2} e\right )} \arctan \left (-c x + \sqrt{c^{2} x^{2} - 1}\right )}{2 \, c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \operatorname{acsc}{\left (c x \right )}\right ) \left (d + e x\right )\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (e x + d\right )}{\left (b \operatorname{arccsc}\left (c x\right ) + a\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]